package io.renren.modules.mybog.fromControoler;



import io.renren.modules.mybog.entity.FocusEntity;
import io.renren.modules.mybog.fromControoler.utiles.R;
import io.renren.modules.mybog.service.FocusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 小🌤
 * @since 2021-03-16
 */
@RestController
@RequestMapping("/bolg/focus")
public class FocusControllers {

    @Autowired
    private FocusService focusService;

    @GetMapping("/list")
    public R list(){
        List<FocusEntity> list = focusService.list();
       return R.ok().data("data",list);
    }
}

